home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
educate
/
mmtyp106.zip
/
SETUP.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-11-09
|
5KB
|
146 lines
@echo off
cls
echo
if exist config95.inf goto start
echo About: MasterMind Typing SETUP
echo
echo To capture these instructions, key PrintScreen or Shift+PrintScreen.
echo
echo To execute, please go to the directory where SETUP.bat is.
echo It is on a floppy drive, typically A:, or in a temporary
echo directory that you have provided on your hard disk.
echo
echo When in the proper directory, please execute
echo SETUP
if exist %windir%\startm~1\programs\nul goto nav95
echo
echo One may navigate via:
echo Main, File Manager; or
echo Program Manager, File, Run, Browse.
if "%OS%"=="Windows_NT" goto close
echo
echo If your operating system is Windows 3.x, please do NOT run SETUP.
echo For Win3.x, the installation program is CONFIG3X.EXE instead.
goto close
:nav95
echo
echo One may navigate via:
echo My Computer; or
echo Start, Programs, Explorer.
goto close
:start
if exist %windir%\..\nul md %windir%\..\$MM_cfg$
set $MM_cfg$=%windir%\..\$MM_cfg$
if exist %$MM_cfg$%\nul goto copy
echo My apologies. I cannot proceed because I cannot create temporary
echo storage on the Windows drive. Normally, SETUP works under
echo Windows 95 or NT.
echo
echo If your operating system is Windows 3.x, please do NOT run SETUP.
echo For Win3.x, the installation program is CONFIG3X.EXE instead.
set $MM_cfg$=
goto close
:copy
echo Writing temporary, setup files takes a minute.
echo Later, I shall erase these automatically.
if not exist %windir%\startm~1\programs\nul copy config3x.inf %$MM_cfg$%\setup.inf
if exist %windir%\startm~1\programs\nul copy config95.inf %$MM_cfg$%\setup.inf
copy MenuSet.bat %$MM_cfg$%\MenuSet.bat
copy MMBW.ico %$MM_cfg$%
copy MMTYPE.tbk %$MM_cfg$%
copy MMtype95.lnk %$MM_cfg$%\MMtype95.lnk
copy README.txt %$MM_cfg$%
copy TADA.wav %$MM_cfg$%
xcopy *.exe %$MM_cfg$%\
if errorlevel 1 goto errCopy
rename %$MM_cfg$%\config3x.exe setup.exe
xcopy *.dll %$MM_cfg$%\
if not errorlevel 1 goto execute
:errCopy
echo
echo My apologies. The copy attempt failed. Does your hard disk have
echo at least 2 megabytes free space?
echo
del %$MM_cfg$%\*.exe
del %$MM_cfg$%\*.dll
del %$MM_cfg$%\m*.*
del %$MM_cfg$%\readme.txt
del %$MM_cfg$%\tada.wav
del %$MM_cfg$%\setup.inf
rd %$MM_cfg$%
set $MM_cfg$=
goto close
:execute
cls
if not exist %windir%\startm~1\programs\nul goto bypass95
echo
echo To reactivate this window if necessary, please
echo click the MS-DOS 'setup' icon on the Taskbar.
:bypass95
echo
echo Please leave this window open until I advise closing it.
%$MM_cfg$%\setup
echo
echo After installation has run in its own window and
echo README.txt has appeared, or if you rejected it, please
pause
echo
echo Now erasing setup files.
del %$MM_cfg$%\*.exe
del %$MM_cfg$%\*.dll
del %$MM_cfg$%\m*.*
del %$MM_cfg$%\readme.txt
del %$MM_cfg$%\tada.wav
del %$MM_cfg$%\setup.inf
rd %$MM_cfg$%
if not exist %$MM_cfg$%\nul echo OK erasure done.
if exist %$MM_cfg$%\nul echo Trouble: temporary %$MM_cfg$% not erased.
set $MM_cfg$=
if exist c:\mmtype\mmtype95.lnk goto MenuSet
if exist %windir%\startm~1\programs\nul goto win95
echo
echo If you later add Windows 95's user interface to this system,
echo at that time please double-click 'MenuSet' in the MasterMind Typing
echo folder of Win95. MenuSet will put the 'MMtype95' keyboard icon on
echo Win95's Start Programs menu for easier launch.
goto close
:win95
echo
echo Please key Shift+PrintScreen to capture these instructions.
echo
echo To finish installation elsewhere than C:\MMTYPE, one must edit the
echo startup information. Please go to the MasterMind Typing folder
echo and RIGHTclick the 'MMtype95' keyboard icon. Then choose
echo Properties, Shortcut.
echo
echo Unless Windows automatically has changed the 'Target' field as you
echo want, please do it manually. Retaining 'tbook.exe mmtype,' the
echo 'Target' field needs your [drive] and [path] in the form:
echo [drive]:\[path]\tbook.exe mmtype
echo Upper/lower case is immaterial. Then please copy just the same
echo [drive]:\[path] into the 'Start in' field.
echo
echo Next, OK the changes and test startup using the 'MMtype95' keyboard
echo icon. If MasterMind Typing launches all right, execute the
echo MenuSet utility. MenuSet copies the MMtype95 shortcut to the Start
echo Programs menu for easier launch.
echo
echo After printing this screen, please
pause
goto close
:MenuSet
if not exist %windir%\startm~1\programs\nul goto close
echo
echo Writing to %windir%\startm~1\programs, Win95's Start Programs menu:
copy c:\mmtype\mmtype95.lnk %windir%\startm~1\programs\MMtype95.lnk
echo
echo The easiest way to launch MasterMind Typing is the 'MMtype95' keyboard
echo icon on your Start Programs menu. Alternatively, you may launch from
echo the same icon in the C:\MMTYPE folder.
echo
echo For any other questions, please see README.txt.
:close
echo
echo After reading messages if any, please close this window.
if not exist %windir%\startm~1\programs\nul pause